package org.misty.practices.string;

public class StringConcat {
    public static void main(String[] args) {
    }

    public static void test1() {
        var hello = "Hello";
        var helloworld = new String(hello + "World");
    }

    public static void test2() {
        var world = "World";
        var helloworld = new String("Hello" + world);
    }

    public static void test3() {
        var hello = "Hello";
        var world = "World";
        var end = "!";
        var helloworld = new String(hello + world + end);
    }

    public static void test4() {
        var h = "Hello" + "World";
        var helloworld = new String("Hello" + "World");
    }
}
